<?php /* Smarty version Smarty-3.0.7, created on 2011-07-28 18:59:59
         compiled from "/opt/lampp/htdocs/chilik-wiki/views/templates/edit.tpl" */ ?>
<?php /*%%SmartyHeaderCode:14414017464e31958f064d48-75392497%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'a149e8b90c18f85060bce17e18ea86d4b0779e05' => 
    array (
      0 => '/opt/lampp/htdocs/chilik-wiki/views/templates/edit.tpl',
      1 => 1311849094,
      2 => 'file',
    ),
    'e674f9e5f0e47f25b57e3bc9d89ef1f937ed46ff' => 
    array (
      0 => '/opt/lampp/htdocs/chilik-wiki/views/templates/base.tpl',
      1 => 1311870674,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '14414017464e31958f064d48-75392497',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include '/opt/lampp/htdocs/chilik-wiki/libraries/smarty/plugins/modifier.escape.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title><?php echo $_smarty_tpl->getVariable('page_title')->value;?>
</title>
	<link href="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
css/main.css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
css/main(1).css" rel="stylesheet" type="text/css"/>
        <link href="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
css/chrome.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
javascript/jquery/jquery.min.js"> </script>
	
	
  <script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
javascript/tinymce/tiny_mce.js"></script>
  <style type="text/css">

  #body {
    margin: 29px;
    margin-top: 19px;
  }

  #body .buttons {
    margin-top: 0.75em;
  }

  #body .buttons .item {
    margin-right: 0.5em;
  }

  </style>

	
	
  </head>
  <body>
    <div id="header">
      <div class="top">
        <div class="login">
          <?php if ($_smarty_tpl->getVariable('is_active')->value){?>
            <span class="item nickname"></span>Welcome, <?php echo $_smarty_tpl->getVariable('username')->value;?>
 &nbsp;&nbsp;&nbsp;&nbsp;
            
          <?php }else{ ?>
            <span class="item"><a href="#">Sign in</a></span>
          <?php }?>
        </div>
        <div class="title"><a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
"><h3>Chilik-wiki, sebuah dokumentasi</h3></a></div>
      </div>
	  
      <div class="bottom">
		
        
		<?php if ($_smarty_tpl->getVariable('is_active')->value){?>
		
<div class="buttons">		
			<span class="item">&nbsp;<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
"><img src="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
images/home.gif"/></a>&nbsp;&nbsp;			<input type="button" value="Buat Halaman" onclick="NewPage()"/></span>
</div>		
		<div class="buttons2">		
			<form action="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/?" method="post">		
			<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
			<img src="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
images/searchButton.gif" />
			<input name="qsearch" type="text" class="txt" />
			<input name="search-btn" type="submit" class="btn" value="   Search    " />
			</form>
		</div>
		
<div class="buttons3">				
			
			<img src="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
images/searchButton.gif"/>
			<input id="q" type="text"/>
			<input id="searchajax" type="submit" value="  Search-Ajax  " onclick="Search()" />
		
			
		</div>
		
        <div style="clear: both"></div>
		
      </div>
	  <?php }?>
    </div>
		
		<?php if ($_smarty_tpl->getVariable('is_active')->value){?>
		<div id="catalog">
	
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
"> All</a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/A/"> A </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/B/"> B </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/C/"> C </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/D/"> D </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/E/"> E </a> | 
		
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/F/"> F </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/G/"> G </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/H/"> H </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/I/"> I </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/J/"> J </a> | 
		
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/K/"> K </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/L/"> L </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/M/"> M </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/N/"> N </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/O/"> O </a> | 
		
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/P/"> P </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/Q/"> Q </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/R/"> R </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/S/"> S </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/T/"> T </a> | 
		
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/U/"> U </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/V/"> V </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/W/"> W </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/X/"> X </a> |  
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/Y/"> Y </a> | 
		<a href="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/search/Z/"> Z </a> | 
	
	
			</div>
		
		
		<script type="text/javascript">
			function Search(){
				q = $('#q').val();
				$('#body').html('&nbsp;').load('wiki/xsearch/?qsearch=' + q);
				
			};
			
			$(document).ajaxStart(function(){
				$('#spinner').show();
				$('#spinner').html('<div align="center"><img src="<?php echo $_smarty_tpl->getVariable('assets_url')->value;?>
images/spinner.gif"/><br>Sedang mencari...</div>');
			});
			
			$(document).ajaxStop(function(){
				$('#spinner').hide();
			});
			
		</script>
		
		<?php }?>
		
		<div id="spinner"></div>
		<div id="body">
		 	
			
  <form action="<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
wiki/save/?page=<?php echo $_smarty_tpl->getVariable('page_name')->value;?>
" method="post">
    <div><textarea rows="10" cols="50" id="content" style="width: 100%; height: 400px" name="content"><?php echo smarty_modifier_escape($_smarty_tpl->getVariable('content')->value);?>
</textarea></div>
    <div class="buttons">
      <span class="item"><input style="font-weight: bold" type="submit" value="Save Changes"/></span>
      <span class="item"><input type="button" onclick="location.href='<?php echo $_smarty_tpl->getVariable('page_url')->value;?>
?page=<?php echo $_smarty_tpl->getVariable('page_name')->value;?>
'" value="Cancel"/></span>
    </div>
  </form>

		</div>
		<div id="footer">
		<p>Dokumentasi Chilik-MVC&copy;2011</p>
		</div>
		
		<script type="text/javascript">	
		    function NewPage() 
		    {
			var pageName = window.prompt("Masukkan judul halaman yang baru dari Chilik-wiki Documentation");
			
			if (pageName) 
			{
				location.href = "wiki/add/?page=" + pageName ;
			}
		    };

	    	</script>
		
	<script type="text/javascript">

	tinyMCE.init({
		mode: "textareas",
		theme: "advanced",
		content_css: "/static/css/base.css",
		auto_focus: "mce_editor_0"
	});

	</script>

  </body>
</html>
